package golf;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Channel {
	int no;
	int server_no;
	String name;
	int available_person_cnt;
	public Channel(){
		
	}
	public Channel(ResultSet rs){
		try {
			setNo( rs.getInt("CHNNO") );
			setName(rs.getString("CHNNM"));
			setAvailable_person_cnt(rs.getInt("CHNAVAILPERNO"));
			setNow_person_cnt(rs.getInt("CHNNOWENTPERNO"));
			setLimited_character_grade(rs.getString("CHARGRADENM"));
			setStatus(rs.getString("CHNSTATUS"));
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public int getServer_no() {
		return server_no;
	}
	public void setServer_no(int server_no) {
		this.server_no = server_no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAvailable_person_cnt() {
		return available_person_cnt;
	}
	public void setAvailable_person_cnt(int available_person_cnt) {
		this.available_person_cnt = available_person_cnt;
	}
	public int getNow_person_cnt() {
		return now_person_cnt;
	}
	public void setNow_person_cnt(int now_person_cnt) {
		this.now_person_cnt = now_person_cnt;
	}
	public String getLimited_character_grade() {
		return limited_character_grade;
	}
	public void setLimited_character_grade(String limited_character_grade) {
		this.limited_character_grade = limited_character_grade;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	int now_person_cnt;
	String limited_character_grade;
	String status;
}